.NET Wrapper interface assembly
All .NET objects that are used in the .NET Wrapper Blocks must implement one of the four interfaces:
-
IBlock: This interface is required by the .NET Wrapper Block
-
IDiscreteSourceBlock: This interface is required by the Discrete .NET Wrapper Source Block.
-
IContinuousSourceBlock: This interface is required by the Continuous .NET Wrapper Source Block.
-
ISinkBlock: This interface is required by the .NET Wrapper Sink Block.
NOTE: Both the IDiscreteSourceBlock and IContinuousSourceBlock derive from the ISourceBlock interface.
These interfaces are defined in the .NETWrapperInterface.DLL assembly. All these interfaces are provided in the CSense.CSenseWrapper namespace. This assembly also contains a group of enumerations, classes and interfaces that can be used by, and passed to your object through the interface. These classes are:
-
FieldType: Enumeration type holding the field types. They can be double, integer or string.
-
Field: Class describing a single field (name and type) along with some utility methods. This class can be serialized.
-
InputFields: Container holding a list of Field objects which describes all the input fields your object can work with.
-
OutputFields: Container holding a list of Field objects which your object will create.
-
IRunnabilityResult: This interface is used when checking if your object is runnable.
-
InputValue: An abstract class holding a single input field along with the quality and timestamp for the field.
-
DoubleInputValue, IntegerInputValue and StringInputValue classes which derive from the InputValue class. These classes hold the value for that field.
-
InputValues: Container holding all the InputValue objects that your object can use.
-
OutputValue: An abstract class holding a single output field along with the quality and timestamp for that field.
-
DoubleOutputValue, IntegerOutputValue and StringOutputValue classes which derive from the OutputValue class. These classes hold the value for the field.
-
OutputValues: Container class holding all the OutputValue classes that the object will use.
NOTE: Only the classes specified can be serialized.
The following interfaces and classes are specific to the .NET Wrapper Source Block. They are only used if your object will use any of the CSense Sources.
-
INeedCSenseSourceFactory: Interface that can be implemented by objects that implement any of the two source interfaces. This interface tells the .NET Wrapper Source block that your object requires the CSenseSourceFactory object.
-
CSenseSourceFactory: Abstract class containing a list of all available sources that can be created along with the creation method that will create a required CSense Source. This object is passed to your object through the INeedCSenseSourceFactory interface.
-
CSenseSourceType: The CSense Source Type enumeration. The source type can either be discrete or continuous.
-
ICSenseSource: Interface to a CSense Source that was created through the CSenseSourceFactory object.
-
CSenseSourcePropertyType: Enumeration of CSense Source properties that can be set.
-
CSenseProperty: The CSense Source property class holding the property type and the new value.
NOTE: Only the classes specified can be serialized.
NOTE: Only discrete sources will be available if your object is used in the Discrete .NET Wrapper Source Block, and only continuous sources will be available if your object is used in the Continuous .NET Wrapper Source Block.
Related topics: